package com.sojson.util.pay.wx;

import javax.servlet.http.HttpServletRequest;

import com.sojson.util.pay.wx.bean.WxResponseV2;
import com.sojson.util.pay.wx.bean.WxResponseV3;

/**
 * 微信支付回调参数验证接口
 * 
 * @author liu
 * @date 2021-03-16
 */
public interface PayWxParamNofityVerifyInterface {

    /**
     * 支付回调
     * 
     * @param request 
     * @return
     * @throws Exception 
     */
    WxResponseV3 payNofity(HttpServletRequest request) throws Exception;

    /**
     * 支付回调(V2接口)
     * 
     * @param request 
     * @return
     * @throws Exception 
     */
    WxResponseV2 payNofityV2(HttpServletRequest request) throws Exception;

    /**
     * 退款回调(V2接口)
     * 
     * @param request 
     * @return
     * @throws Exception 
     */
    WxResponseV2 payNofityCancelV2(HttpServletRequest request) throws Exception;

}